#include "List.h"

int main()
{
	List lt;
	lt.Push_back(1);
	lt.Push_back(2);
	lt.Push_back(3);
	lt.Push_back(4);
	lt.Push_back(5);
	lt.Print();
	lt.Push_front(100);
	lt.Push_front(200);
	lt.Push_front(300);
	lt.Print();
	lt.Pop_back();
	lt.Pop_back();
	lt.Print();
	lt.Pop_front();
	lt.Print();
	//lt.Find(11);

	ListNode* pos1 = lt.Find(200);
	lt.InsertPos(pos1, 888);
	lt.Print();
	
	ListNode* pos2 = lt.Find(200);
	lt.ErasePos(pos2);
	lt.Print();

	return 0;
}